﻿using System.Data.Entity;
using Lucas.Wendell.PI.Interface;
using Lucas.Wendell.PI.Model.Context;
using Lucas.Wendell.PI.Repository;
using Ninject.Modules;

namespace Lucas.Wendell.PI.Infrastructure.NinjectSLC
{
    public class Module: NinjectModule
    {
        public override void Load()
        {
            Bind<IUsuarioRepository>().To<UsuarioRepository>().InThreadScope();

            Bind<DbContext>().To<NetImobiliariaContext>().InThreadScope();
        }
    }
}
